Repository navigation
Agent Flow: the timeline replays every change to the city (#413) - #443
Merged
Merged
Conversation
Seeking to any step now shows the city exactly as it was then: buildings appear when the agent creates them, disappear when it deletes them, move when it renames them, and floors die when their function is removed. - Core: per-step lifecycle (created, deleted, moves) and file.existed, built from Write/Edit, apply_patch and shell commands (rm, mv, cp, touch, redirects, sed -i, tee and their PowerShell forms). - Floors record diedStep from the removed definitions of each hunk. - Runtime: stateAt applies the lifecycle; dying floors shrink on replay. - Harness: invariant check that seek(i) equals stepping forward from i-1 and stepping back from i+2, over every step. - docs/agent-flow/timeline.md lists the rules for future actions.
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adrián · project thread
Part of #413 (epic #319).
What changes
Seeking to any step of the Agent Flow timeline now shows the city exactly as it was at that point of the chat, for every kind of change, not only new floors:
apply_patch, includingMove torm,git rm,mv,git mv,cp,touch,>/>>,tee,sed -i, and their PowerShell/cmd formsHow
agentFlowLifecycle.tsbuilds per-stepcreated/deleted/movesandfile.existed. The shell classifier collects file effects over every segment of a command.stateAtapplies the lifecycle, so seek, step forward and step back all share one source of truth.seek(i)equals stepping forward fromi-1, and equals stepping back fromi+2. Any future action that forgets the timeline fails it.docs/agent-flow/timeline.mdgives the rules for adding a new action.test-guide.mdhas a new "Timeline" section for the manual test.Git diff reconciliation at turn close (for changes no tool reported) is left for a follow-up.
Checks
npm testgreencomplexity.over10stays at the baselineGenerated by Claude Code